{% extends 'generic.html' %}
{% load i18n %} {# Translating code #}

{% block cssBlock %}
	<link href="/media/css/{{request.session.theme}}/pageSupervise/style.css" type="text/css" rel="stylesheet" />
	<link href="/media/css/{{request.session.theme}}/pageProfile/style.css" type="text/css" rel="stylesheet"/>
	<link href="/media/css/{{request.session.theme}}/pageForm/style.css" type="text/css" rel="stylesheet"/>
{% endblock %}

{% block header %}
	<h1>{% blocktrans %}Parallel Platform - Supervisor{% endblocktrans %}</h1>
{% endblock %}

{% block nav %}
	<nav>
		<ul><!-- Navigator of followed path -->
			<li><a href="/">{% blocktrans %}Index{% endblocktrans %}</a></li>
		</ul>
	</nav>
{% endblock %}
            	
{% block article %}
	<h1>{% blocktrans %}Supervisor{% endblocktrans %}</h1>
	<p><span class="explanation">{% blocktrans %}Welcome to the supervisor page. Here you will be able to control the changes over all of the platform. You can commit what changes are valid along the web and set what pages are editable, can create new pages from it or are enabled for users and guests.{% endblocktrans %}</span></p>
	<h2>{% blocktrans %}Web changes{% endblocktrans %}</h2>
	<p><span class="explanation">{% blocktrans %}This is the tree that forms the platform. Each branch shows what pages are inside others, what versions exist from the last commited ones and in what languages are available. To mark a version as valid (discarding the rest of versions) just click on it, once you revise it, click in "commit" option.{% endblocktrans %}</span></p>
	<p><span class="explanation">{% blocktrans %}Note that any changes in the privileges over pages will only affect non-administrators and non-supervisors.{% endblocktrans %}</span></p>
	<form action="." method="POST">
		{% csrf_token %}
		<section>
		{% autoescape off %}
		{{tree}}
		{% endautoescape %}
		</section>
		<input type="submit" value="{% blocktrans %}Commit changes{% endblocktrans %}" />
	</form>

	{% if user.is_staff %}
		<h2>Advanced view</h2>
		<p>
			<span class="explanation">{% blocktrans %}This option will allow you to deeply manage the system's options, such as controlling users and groups' privileges.{% endblocktrans %}</span><br>{% blocktrans %}Click to go to{% endblocktrans %} <a href="/admin/" target="_blank">{% blocktrans %}advanced administration{% endblocktrans %}.</a>	
		</p>
	{% endif %}
{% endblock %}
              
{% block footer %}
	
{% endblock %}
